const go/types.constant_
59 uses
go/types (current package)
api.go#L411: case constant_, variable, mapindex, value, commaok, commaerr:
assignments.go#L33: case constant_, variable, mapindex, value, commaok, commaerr:
assignments.go#L130: if x.mode != constant_ {
builtins.go#L155: if x.mode == constant_ {
builtins.go#L156: mode = constant_
builtins.go#L170: mode = constant_
builtins.go#L222: if check.recordTypes() && mode != constant_ {
builtins.go#L301: if x.mode == constant_ && y.mode == constant_ {
builtins.go#L349: if x.mode == constant_ && y.mode == constant_ {
builtins.go#L355: if check.recordTypes() && x.mode != constant_ {
builtins.go#L427: if x.mode == constant_ {
builtins.go#L473: if x.mode == constant_ {
builtins.go#L483: if check.recordTypes() && x.mode != constant_ {
builtins.go#L568: if x.mode == constant_ && a.mode == constant_ {
builtins.go#L579: if x.mode != constant_ {
builtins.go#L593: if check.recordTypes() && x.mode != constant_ {
builtins.go#L701: x.mode = constant_
builtins.go#L770: x.mode = constant_
builtins.go#L794: x.mode = constant_
builtins.go#L876: if x.mode != constant_ || !isBoolean(x.typ) {
call.go#L238: if x.mode != invalid && x.mode != constant_ {
call.go#L741: x.mode = constant_
const.go#L23: assert(x.mode == constant_)
const.go#L255: assert(x.mode == constant_)
conversions.go#L21: constArg := x.mode == constant_
conversions.go#L116: } else if x.mode == constant_ && isInteger(x.typ) && allString(T) {
expr.go#L189: if x.mode == constant_ {
expr.go#L373: if x.mode == constant_ {
expr.go#L530: if x.mode == constant_ && y.mode == constant_ {
expr.go#L595: if x.mode == constant_ {
expr.go#L615: if y.mode == constant_ {
expr.go#L656: if x.mode == constant_ {
expr.go#L657: if y.mode == constant_ {
expr.go#L808: if (x.mode == constant_ || allInteger(x.typ)) && y.mode == constant_ && constant.Sign(y.val) == 0 {
expr.go#L815: if x.mode == constant_ && y.mode == constant_ && isComplex(x.typ) {
expr.go#L826: if x.mode == constant_ && y.mode == constant_ {
index.go#L58: if x.mode == constant_ {
index.go#L238: if x.mode == constant_ {
index.go#L359: if x.mode != constant_ {
index.go#L395: if x.mode == constant_ {
literals.go#L293: if x.mode == constant_ {
operand.go#L29: constant_ // operand is a constant; the operand's typ is a Basic type
operand.go#L44: constant_: "constant",
operand.go#L143: case constant_:
operand.go#L175: if x.mode == constant_ {
operand.go#L292: x.mode = constant_
recording.go#L28: case constant_:
recording.go#L65: if mode == constant_ {
stmt.go#L253: if v.mode != constant_ {
stmt.go#L656: x.mode = constant_
typexpr.go#L108: x.mode = constant_
typexpr.go#L527: if x.mode != constant_ {